﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="True" CodeBehind="EditMenuItem.aspx.cs" Inherits="Cms.Web.UI.Admin.EditMenuItem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="buttons" runat="server">
    <asp:LinkButton ID="lbSave" runat="server" OnClick="lbSave_Click" CssClass="orangeButton"><span><span><img src="/Admin/Img/icons/disk.png" alt="" /><span><cms:LocalizedLiteral ID="llSave" runat="server" /></span></span></span></asp:LinkButton>
    <asp:HyperLink ID="hlCancel" runat="server" CssClass="orangeButton"><span><span><img src="/Admin/Img/icons/delete.png" alt="" /><span><cms:LocalizedLiteral ID="llCancel" runat="server" /></span></span></span></asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body" runat="server">
    <asp:Literal ID="litIcon" runat="server" Visible="false" Text="Admin/Img/Icons/chart_organisation.png" />
    <asp:UpdatePanel ID="upnlForm" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
            <table class="editForm">
                <tr>
                    <td><cms:LocalizedLiteral ID="llLocale" runat="server" />:</td>
                    <td><asp:DropDownList ID="ddlLocales" runat="server" /></td>
                </tr>
            </table>
            <div class="adminPageSectionDivider"></div>
            <table class="editForm">
                <tr>
                    <td><cms:LocalizedLiteral ID="llName" runat="server" />:</td>
                    <td><asp:TextBox ID="txtName" runat="server" /></td>
                </tr>
                <tr>
                    <td><cms:LocalizedLiteral ID="llParentMenuItem" runat="server" />:</td>
                    <td><ilib:iDropDownList ID="ddlParentMenuItems" runat="server" /></td>
                </tr>
                <tr>
                    <td><cms:LocalizedLiteral ID="llLinkType" runat="server" />:</td>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="padding-right: 0px;"><asp:RadioButton ID="rbPage" runat="server" GroupName="LinkType" OnCheckedChanged="rbLinkType_Changed" AutoPostBack="true" /></td>
                                <td><cms:LocalizedLiteral ID="llLinkTypePage" runat="server" /></td>
                                <td style="padding-right: 0px;"><asp:RadioButton ID="rbUrl" runat="server" GroupName="LinkType" OnCheckedChanged="rbLinkType_Changed" AutoPostBack="true" /></td>
                                <td><cms:LocalizedLiteral ID="llLinkTypeUrl" runat="server" /></td>
                                <td style="padding-right: 0px;"><asp:RadioButton ID="rbNothing" runat="server" GroupName="LinkType" OnCheckedChanged="rbLinkType_Changed" AutoPostBack="true" /></td>
                                <td><cms:LocalizedLiteral ID="llLinkTypeNothing" runat="server" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="trPage" runat="server" visible="false" style="height: 30px;">
                    <td><cms:LocalizedLiteral ID="llPage" runat="server" />:</td>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0"> 
                            <tr>
                                <td><ilib:iDropDownList ID="ddlFolders" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFolders_Changed" /></td>
                                <td>
                                    <asp:DropDownList ID="ddlPages" runat="server" />
                                    <asp:Label ID="lblNoPages" runat="server"><cms:LocalizedLiteral ID="llNoPages" runat="server" /></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="trUrl" runat="server" visible="false" style="height: 30px;">
                    <td><cms:LocalizedLiteral ID="llUrl" runat="server" />:</td>
                    <td><asp:TextBox ID="txtUrl" runat="server" /></td>
                </tr>
            </table>
            <div class="adminPageSectionDivider"></div>
            <table class="editForm">
                <tr valign="top">
                    <td><cms:LocalizedLiteral ID="llDefaultImage" runat="server" />:</td>
                    <td>
                        <input type="hidden" id="hidDefaultImageID" runat="server" />
                        <asp:Literal ID="litDefaultImage" runat="server" />
                        <asp:Image ID="imgDefaultImage" runat="server" style="margin-top: 3px; border: 1px solid #d4d9e4; padding: 1px; display: block;" />
                    </td>
                    <td>
                        <asp:LinkButton ID="lbSelectDefaultImage" runat="server" style="margin-left: 20px;" OnClick="lbSelectImage_Click" CommandArgument="defaultimage"><cms:LocalizedLiteral ID="llSelectDefaultImage" runat="server" /></asp:LinkButton>                                
                        <asp:Literal ID="litDeleteDefaultImagePipe" runat="server">|</asp:Literal>
                        <asp:LinkButton ID="lbDeleteDefaultImage" runat="server" OnClick="lbDeleteImage_Click" CommandArgument="defaultimage"><cms:LocalizedLiteral ID="llDeleteDefaultImage" runat="server" /></asp:LinkButton>                                
                    </td>
                </tr>
                <tr valign="top">
                    <td><cms:LocalizedLiteral ID="llActiveImage" runat="server" />:</td>
                    <td>
                        <input type="hidden" id="hidActiveImageID" runat="server" />
                        <asp:Literal ID="litActiveImage" runat="server" />
                        <asp:Image ID="imgActiveImage" runat="server" style="margin-top: 3px; border: 1px solid #d4d9e4; padding: 1px; display: block;" />
                    </td>
                    <td>
                        <asp:LinkButton ID="lbSelectActiveImage" runat="server" style="margin-left: 20px;" OnClick="lbSelectImage_Click" CommandArgument="activeimage"><cms:LocalizedLiteral ID="llSelectActiveImage" runat="server" /></asp:LinkButton>                                
                        <asp:Literal ID="litDeleteActiveImagePipe" runat="server">|</asp:Literal>
                        <asp:LinkButton ID="lbDeleteActiveImage" runat="server" OnClick="lbDeleteImage_Click" CommandArgument="activeimage"><cms:LocalizedLiteral ID="llDeleteActiveImage" runat="server" /></asp:LinkButton>                                
                    </td>
                </tr>
                <tr valign="top">
                    <td><cms:LocalizedLiteral ID="llDefaultHoverImage" runat="server" />:</td>
                    <td>
                        <input type="hidden" id="hidDefaultHoverImageID" runat="server" />
                        <asp:Literal ID="litDefaultHoverImage" runat="server" />
                        <asp:Image ID="imgDefaultHoverImage" runat="server" style="margin-top: 3px; border: 1px solid #d4d9e4; padding: 1px; display: block;" />
                    </td>
                    <td>
                        <asp:LinkButton ID="lbSelectDefaultHoverImage" runat="server" style="margin-left: 20px;" OnClick="lbSelectImage_Click" CommandArgument="defaulthoverimage"><cms:LocalizedLiteral ID="llSelectDefaultHoverImage" runat="server" /></asp:LinkButton>                                
                        <asp:Literal ID="litDeleteDefaultHoverImagePipe" runat="server">|</asp:Literal>
                        <asp:LinkButton ID="lbDeleteDefaultHoverImage" runat="server" OnClick="lbDeleteImage_Click" CommandArgument="defaulthoverimage"><cms:LocalizedLiteral ID="llDeleteDefaultHoverImage" runat="server" /></asp:LinkButton>                                
                    </td>
                </tr>
                <tr valign="top">
                    <td><cms:LocalizedLiteral ID="llActiveHoverImage" runat="server" />:</td>
                    <td>
                        <input type="hidden" id="hidActiveHoverImageID" runat="server" />
                        <asp:Literal ID="litActiveHoverImage" runat="server" />
                        <asp:Image ID="imgActiveHoverImage" runat="server" style="margin-top: 3px; border: 1px solid #d4d9e4; padding: 1px; display: block;" />
                    </td>
                    <td>
                        <asp:LinkButton ID="lbSelectActiveHoverImage" runat="server" style="margin-left: 20px;" OnClick="lbSelectImage_Click" CommandArgument="activehoverimage"><cms:LocalizedLiteral ID="llSelectActiveHoverImage" runat="server" /></asp:LinkButton>                                
                        <asp:Literal ID="litDeleteActiveHoverImagePipe" runat="server">|</asp:Literal>
                        <asp:LinkButton ID="lbDeleteActiveHoverImage" runat="server" OnClick="lbDeleteImage_Click" CommandArgument="activehoverimage"><cms:LocalizedLiteral ID="llDeleteActiveHoverImage" runat="server" /></asp:LinkButton>                                
                    </td>
                </tr>
            </table>
            <div class="adminPageSectionDivider"></div>
            <table class="editForm">
                <tr id="trTarget" runat="server">
                    <td><cms:LocalizedLiteral ID="llTarget" runat="server" />:</td>
                    <td><asp:DropDownList ID="ddlTargets" runat="server" /></td>
                </tr>
                <tr>
                    <td><cms:LocalizedLiteral ID="llActiveForCategory" runat="server" />:</td>
                    <td><ilib:iDropDownList ID="ddlCategories" runat="server" /></td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
